package main

import (
	"fmt"
	"github.com/spf13/cobra"
	"go-blockchain-from-scratch/cmd/tbb"
	"os"
)

func main() {
	tbbCmd := &cobra.Command{
		Use:   "tbb",
		Short: "The Blockchain Bar CLI",
		Run: func(cmd *cobra.Command, args []string) {
		},
	}

	tbbCmd.AddCommand(tbb.VersionCmd, tbb.BalancesCmd(), tbb.TxCmd())

	err := tbbCmd.Execute()
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}
